<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <%@ taglib  
	uri="http://java.sun.com/jsp/jstl/core"
	prefix="c"%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理者_0</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
#top{
weight:542px;
height:200px;
background-image: url("img/controller_0.gif");
}

body{overflow:hidden;
  
}
 </style>
</head>
<body onload="showTime()">
     <div class=" text-center" id="top">
     <h1>管理员界面</h1>
     <span class="lable lable-primary">管理员:{controller_id}</span>
     <div id="time">
     </div>
     </div>

</body>
<script type="text/javascript" src="bootstrap/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript">
function showTime()
{
	//获取系统时间
	var time=new Date();
	var msg="";
	var y=time.getFullYear();
	msg+=y+"年";
	//值是 0-11之间的数字，加 1 后变成我们中国人的月份
	var m=time.getMonth()+1;
	if(m<10)
	{
		m="0"+m;
	}
	msg+=m+"月";
	var d=time.getDate();
	if(d<10)
	{
		d="0"+d;		
	}
	msg+=d+"日";
	
	var h=time.getHours();
	if(h<10)
	{
		h="0"+h;	
	}
	msg+=" "+h+":";
	var mis=time.getMinutes();
	if(mis<10){
		mis="0"+mis;
	}
	msg+=mis+":";
	var s=time.getSeconds();
	if(s<10){
		s="0"+s;
	}
	msg+=s;
	//把msg的值赋给id为time的控件中
	document.getElementById("time").innerHTML=msg;
	setTimeout("showTime()",1000);
}
</script>
</html>